<div class="location-node<?php if ($this->get('subnodes')){?> expandable<?php }?>">

  <?php if ($this->getParam(static::PARAM_LINK)){?><a href="<?php echo func_htmlspecialchars($this->getParam(static::PARAM_LINK));?>" class="location-title"><?php }?><?php echo func_htmlspecialchars($this->getParam(static::PARAM_NAME));?><?php if ($this->getParam(static::PARAM_LINK)){?></a><?php }?>

  <?php if ($this->get('subnodes')): ?><ul class="location-subnodes" >
    <?php $node = isset($this->node) ? $this->node : null; $_foreach_var = $this->get('subnodes'); if (isset($_foreach_var)) { $this->nodeArraySize=count($_foreach_var); $this->nodeArrayPointer=0; } if (isset($_foreach_var)) foreach ($_foreach_var as $this->node){ $this->nodeArrayPointer++; ?><li ><a href="<?php echo func_htmlspecialchars($this->get('node')->getParam(static::PARAM_LINK));?>"><?php echo func_htmlspecialchars($this->get('node')->getParam(static::PARAM_NAME));?></a></li>
<?php } $this->node = $node; ?>
  </ul><?php endif; ?>

</div>
